package com.xc.freeapp.dao;

import java.util.List;
import java.util.Map;

import com.xc.freeapp.entity.Department;
import com.xc.freeapp.entity.Departments;

public interface DepartmentDao {

    public int insert(Department record);

    public Department selectByPrimaryKey(Integer id);

    public int updateByPrimaryKey(Department record);
    
    public int deleteByPrimaryKey(Integer id);
    
    /**
	 * 根据医院id和科室类型获取科室列表
	 * @param paramsmap {"businessId","querytype"}
	 */
    public List<Department> getDeparmentList(Map<String, Object> paramsmap);
    public List<Department> getDeparmentTypeList(Map<String, Object> paramsmap);
    
    
    public List<Department> getDeparmentsList(Map<String, Object> paramsmap);
    
    public List<Department> getAllDeparment(Integer businessid);
}